package com.mbc.rmt.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;

import com.mbc.common.param.CriteriaParams;
import com.mbc.rmt.data.BranchCOADataList;
import com.mbc.rmt.entities.BranchCOA;
import com.mbc.rmt.entities.BranchCOARpt;

public interface BranchCOADAO {
	
	public void create(BranchCOA entity) throws SQLException;
	public void update(BranchCOA entity) throws SQLException;
	public void delete(BranchCOA entity)throws SQLException;
	public BranchCOADataList findBranchCOAs(CriteriaParams cri)throws SQLException;
	public BranchCOADataList findBranchCOAs(long branchid) throws SQLException;
	public BranchCOA findByBranchCOA(String code, long branchId)throws SQLException;
	ResultSet prepareBranchCOAReport (BranchCOARpt entity)throws SQLException;
	public ArrayList<BranchCOA> find(long key)throws SQLException;
	public BranchCOA getBranchCOA(BranchCOA entity) throws SQLException;
	public BranchCOA findByHostBranchID(long defaultBranchKey, long branchKey) throws SQLException;
	public int findCount(long key)throws SQLException;
}
